import { createRouter, createWebHistory } from 'vue-router'
import HomePage from '../views/homePage.vue'

// 子菜单
import toolBox from './toolBox.js'

const routes = [
  {
    path: '/',
    redirect: '/toolbox/demo'
  },
  {
    path: '/',
    name: 'home',
    component: HomePage,
    children:[
      // 小工具
      toolBox,
    ]
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
